﻿/////////////////////////////////////////////////////////////////////
//
//	Map_FVG C# Class Library.
//
//	ViewQ2
//	
//
//	autore: Gustavo Mainardi 
//	versione: 1.0
//	data: 01/12/2015
//
//
//	Cronologia delle versioni:
//
//	Versione 1.0 01/01/2015
//		versione originale
//
//////////////////////////////////////////////////////////////////////////
using System.Drawing;


namespace Map_Fvg
{
    partial class ViewQ
    {

        public struct SimbL
        {
            public string codice;
            public string denom;
            public string classe;
            public int penType;
            public float penWidth;
            public Color icolor;
            public int visib;
            public int selected;
            public string elemento;
            public string tratto;
        }

        public static SimbL[] vectS = new SimbL[500];
        public static int nSimb;
        public static string selectedElement;


        public struct vShapesL
        {
            public int numID;
            public int pntSimb;
            public int nVertices;
            public int pntpL;
            public Point PointA;
            public Point PointB;
            public int selected;
            public int modifica;
            public string quota;
            public string lunghezza;
            public string edizione;
            public int tipo;
        }

        public static vShapesL[] vectShapes;  
        public static int nShapes;
        public static int max_nShapes;
        public static int noElem;
        public static int selElem;

        public static Point[] PL;  
        public static int max_nPoints;

        public struct QuotaLiv
        {
            public int num;
            public int selected;
            public int quota;
        }

        public static QuotaLiv[] QuotaLivDir;
        public static QuotaLiv[] QuotaLivInt;

        public static int numQuotaLivDir;
        public static int numQuotaLivInt; 

        
        public struct SimbT
        {
            public string codice;
            public string denom;
            public string classe;
            public string elemento;
            public int edizione;
            public float altezza;
            public int penType;
            public int penWidth;
            public Color icolor;
            public Font iFont;
            public int visib;
            public int selected;
        }

        public static int max_nSimbT = 1000;
        public static SimbT[] vectT = new SimbT[max_nSimbT];
        public static int nSimbT;

        public struct vShapesT
        {
            public int pntSimb;
            public int modifica;
            public string testo;
            public float altezza;
            public float rotazione;
            public int ncar_testo;
            public int cod_posiz;
            public int selected;
            public float GMrotation;       
            public Point XX;
        }
        public static vShapesT[] vectShapesT;  

        public static int nShapesT;
        public static int max_nShapesT;
     
        public struct SimbP
        {
            public string codice;
            public string denom;
            public string classe;
            public int simbolo;
            public string paramSimb;
             public float dimensione;
            public Color icolor;
            public Font iFont;
            public int visib;
            public int selected;
            public string elemento;
            public string fileName;
        }

        public static int max_nSimbP = 1000;
        public static SimbP[] vectP = new SimbP[max_nSimbP];
        public static int nSimbP;

        public struct vShapesP
        {
            public int pntSimb;
            public float quota;
            public float rotazione;
            public float dimensione;
            public float GMrotation;   
            public Point XX;
            public int edizione;
            public int modifica;
            public string elemento;
            public int selected;
        }

        public static vShapesP[] vectShapesP;  

        static public int nShapesP;
        public static int max_nShapesP;

        //*******
        //***    *Area
        //********         
        public struct SimbA
        {
            public string codice;
            public string denom;
            public string classe;
            public string elemento;
            public int edizione;
            public string identif;
            public float area;
            public float media_Q;
            public int codice_bordo;
            public string bordo;
            public int codice_camp;
            public string campitura;
            public int penType;
            public int penWidth;
            public Color icolor;
            public Font iFont;
            public int visib;
            public int selected;
        }


        public static SimbA[] vectA = new SimbA[5000];
        public static int nSimbA;

        public struct vShapesA
        {
            public int pntSimb;
            public int nVertices;
            public int pntPA;
            public string elemento;
            public int edizione;
            public int modifica;
            public float area;
            public float media_Q;
            public Point PointA;
            public Point PointB;
            public int selected;
            public int nParts;
            public string Parts_string;
            public string identif;
        }

        public static vShapesA[] vectShapesA;
        public static Point[] PA;
        public static int nShapesA;
        public static int nPointsA;

        private Point[] PointSelect = new Point[4];
        private Rectangle RectSelect = new Rectangle();
        public static int Select_flag;
        public enum flagSelez
        {
            none,
            area,
            linea,
            testo,
            punto,
        }

        public static int Xmin, Ymin, Xmax, Ymax, iskip;
        public static float alpha, Xorig, Yorig;

        public static int Xoff, Yoff;
        public static float scalaX, scalaY;
        Size oldSize = new Size();





    }
}
